Skip to content

ci: official nodes in the test networks - #103

Merged
EnzinoBB merged 8 commits into
masterfrom
ci/official-nodes
Oct 25, 2026
Merged

EnzinoBB merged 8 commits into
masterfrom
ci/official-nodes

Conversation

@EnzinoBB

Copy link
Copy Markdown
Collaborator

The official 4.2.532 node cannot join our CI test networks as it is: its genesis block sends the funds to the mainnet address and its starter key is the mainnet one, while a test network uses keys generated per run, so it stays at block 0 on a different genesis.

  • ci/official/testnet-hooks.patch: 11 lines on the official source (4a95aaa): CS_TESTNET_STARTER_KEY and CS_TESTNET_GENESIS_KEY read from the environment, as our CREDITS_TESTNET builds do. Nothing else of the official node changes; without the variables it behaves as on mainnet. Release builds are not affected (they never use this patch, and our own release keeps CREDITS_TESTNET off).
  • testnet.yml, robustness.yml: node_alt_ref=official builds that node and runs it on the even nodes; the nightly testnet.yml run uses it.
  • run.sh (BIN_ALT_OFFICIAL=1): official nodes log no state digest, so every node opens its API and ci/testnet/blockhashes.py checks that each node holds the same block hashes as n1 (every 100th block up to the lowest head); the state digests are compared among the community nodes.

🤖 Generated with Claude Code

EnzinoBB and others added 8 commits October 25, 2026 14:06
node_alt_ref=official builds the official 4.2.532 node (4a95aaa) with only
the two hooks a CI test network needs, its starter key and genesis recipient
(ci/official/testnet-hooks.patch), and runs it on the even nodes. Official
nodes log no state digest: every node opens its API and blockhashes.py checks
that they hold the same blocks as n1; digests are compared among the others.
The nightly testnet run uses official nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g suffix -o)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run.sh refuses at once a scenario that needs on an even node a feature only
this fork has, reports the official nodes' BerkeleyDB, traces cores with the
binary of the node that left them; robustness.yml skips those scenarios with
node_alt_ref=official; two nightly testnet runs (this node alone, then with
official nodes); the official build no longer gets CREDITS_TESTNET; the patch
logs when its genesis hook is used and is kept byte for byte (.gitattributes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…null != false is false)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ficial joiner diverges on the Dice state, the behaviour #93-#96 fixed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…node killed while saving a checkpoint does not restart)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EnzinoBB
EnzinoBB merged commit e41f39e into master Oct 25, 2026
2 checks passed
EnzinoBB added a commit that referenced this pull request Oct 25, 2026
Step P5 rewritten against the code merged through #104 and PR #103 (official
even nodes in CI): the init split into initCommon/initChain/initRunning, the
gates (chooseMessageAction, onNeighbourAdded, onPingChecked, onRoundTimeElapsed),
the worker thread for the import and initChain with the hand-over through
CallsQueue, the fetcher hooks, the hash databases released before the import,
the interrupted-import marker, the start-up verification with exit code 4, the
run.sh variables and the robustness rows with official even nodes, and the
risks with a test for each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant